package com.particles 
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	/**
	 * ...
	 * @author SChabanov
	 */
	public class Particle 
	{
		
		public var clip : DisplayObject;
		
		public var xVel : Number = 0; 
		public var yVel : Number = 0;
		
		public var drag : Number = 1; 
		public var rotation:Number = 1;
		public var gravity : Number = 0; 
		
		public var shrink : Number = 1; 
		public var fade : Number = 0; 
		
		public var lifeTime:int = 0;
		public var holdTime:int = 0;
		
		public var angleSin:Number = 0;
		public var angleCos:Number = 0;
		
		public var angleIncrement:Number = 1;
		
		public var radius:Number = 0;
		
		public function Particle(symbolclass : Class, xpos : Number, ypos : Number) 
		{
			// make the particle clip
			clip = new symbolclass();
			
			clip.cacheAsBitmap = true;
			
			// and move it to its starting position
			clip.x = xpos; 
			clip.y = ypos; 
			
		}
	}
}